home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / unix / lnxfaq.zip / PART1.FAQ < prev    next >
Text File  |  1994-06-17  |  48KB  |  1,057 lines

  1. Archive-Name: linux/faq/part1
  2. Last-Modified: 16 Jun 1994
  3.  
  4. This is the list of Frequently Asked Questions about Linux, the free Unix
  5. for 386/486 [see Q1.1 `What is Linux ?' for more details].  It should be
  6. read in conjunction with the HOWTO documents, which are available in
  7.    ftp.funet.fi (128.214.6.100)   /pub/OS/Linux/doc/HOWTO
  8.    tsx-11.mit.edu (18.172.1.2)    /pub/linux/docs/HOWTO
  9.    sunsite.unc.edu (152.2.22.81)  /pub/Linux/docs/HOWTO
  10. and mirror sites thereof -- see Q2.5 `Where can I get Linux material by
  11. FTP ?'.  See Q2.1 `Where can I get the HOWTOs and other documentation ?'
  12. for a list of the HOWTOs and more information.  The INFO-SHEET and
  13. META-FAQ, found in the same place, also list other sources of Linux
  14. information.
  15.  
  16. The Linux Documentation Project documentation is available on
  17. sunsite.unc.edu in /pub/Linux/docs/LDP.  These documents (more are in
  18. preparation) are invaluable to the newcomer or for use as a reference
  19. work.
  20.  
  21. Please check out these documents and this FAQ, especially Q9.1 `You still
  22. haven't answered my question !', before posting your question to the
  23. newsgroup comp.os.linux.help.
  24.  
  25. You can skip to a particular question by searching for `Question n.n'.
  26. See Q10.2 `Formats in which this FAQ is available' for details of where to
  27. get the PostScript and Emacs Info versions of this document.
  28.  
  29. Note that this posting has been split into two parts because of its size.
  30.  
  31. A new version of this document appears approximately monthly.  If this
  32. copy is more than a month old it may be out of date.
  33.  
  34. ===============================================================================
  35.  
  36. Index
  37.  
  38.  Section 1.  Introduction and General Information
  39.  Q1.1        What is Linux ?
  40.  Q1.2        What software does it support ?
  41.  Q1.3        Does it run on my computer ?  What hardware is supported ?
  42.  Q1.4        How much hard disk space does Linux need ?
  43.  Q1.5        Is Linux PD ?  Copyrighted ?
  44.  Q1.6        How should I pronounce Linux ?
  45.  
  46.  Section 2.  Network sources and resources
  47.  Q2.1        Where can I get the HOWTOs and other documentation ?
  48.  Q2.2        Where should I look on the World Wide Web for Linux stuff ?
  49.  Q2.3        What newsgroups are there for Linux ?
  50.  Q2.4        How do I install Linux ?
  51.  Q2.5        Where can I get Linux material by FTP ?
  52.  Q2.6        I don't have FTP access.  Where do I get Linux ?
  53.  Q2.7        I don't have Usenet access.  Where do I get information ?
  54.  Q2.8        What's this mailing list thing at niksula.hut.fi ?
  55.  Q2.9        Are the newsgroups archived anywhere ?
  56.  
  57.  Section 3.  Compatibility with other operating systems
  58.  Q3.1        Can Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?
  59.  Q3.2        How do I access files on my DOS partition or floppy ?
  60.  Q3.3        Can I use my Stacked/DBLSPC/etc. DOS drive ?
  61.  Q3.4        Can I access OS/2 HPFS partitions from Linux ?
  62.  Q3.5        Can I access BSD FFS, SysV UFS, Mac, Amiga, etc filesystems ?
  63.  Q3.6        Can I run Microsoft Windows programs under Linux ?
  64.  Q3.7        How can I boot Linux from OS/2's Boot Manager ?
  65.  Q3.8        How can I share a swap partition between Linux and MS Windows ?
  66.  
  67.  Section 4.  Linux's handling of filesystems, disks and drives
  68.  Q4.1        How can I undelete files ?
  69.  Q4.2        Is there a defragmenter for ext2fs etc. ?
  70.  Q4.3        How do I format and create a filesystem on a floppy ?
  71.  Q4.4        I get nasty messages about inodes, blocks, and the suchlike
  72.  Q4.5        My swap area isn't working.
  73.  Q4.6        How can I have more than 16Mb of swap ?
  74.  Q4.7        How do I remove LILO so my system boots DOS again ?
  75.  Q4.8        Why can't I use fdformat except as root ?
  76.  Q4.9        Is there something like Stacker or Doublespace for Linux ?
  77.  Q4.10       My ext2fs partitions are checked each time I reboot.
  78.  Q4.11       I have a huge /proc/kcore !  Can I delete it ?
  79.  Q4.12       My AHA1542C doesn't work with Linux.
  80.  
  81.  Section 5.  Porting, compiling and obtaining programs
  82.  Q5.1        What is ld.so and where do I get it ?
  83.  Q5.2        During linking I get Undefined symbol _mcount
  84.  Q5.3        Has anyone ported / compiled / written XXX for Linux ?
  85.  Q5.4        How do I port XXX to Linux ?
  86.  Q5.5        Can I use code or a compiler compiled for a 486 on my 386 ?
  87.  Q5.6        GCC sometimes uses huge amounts of virtual memory and thrashes
  88.  Q5.7        What does gcc -O6 do ?
  89.  Q5.8        Where are <linux/*.h> and <asm/*.h> ?
  90.  Q5.9        I get errors when I try to compile the kernel.
  91.  Q5.10       How do I make a shared library ?
  92.  Q5.11       How do I make my executables smaller ?
  93.  
  94.  Section 6.  Miscellaneous questions and problems
  95.  Q6.1        How many people use Linux ?
  96.  Q6.2        How can I get scrollback on text VC's ?
  97.  Q6.3        Setuid scripts don't seem to work.
  98.  Q6.4        Free memory as reported by free keeps shrinking.
  99.  Q6.5        What is a BogoMip ?
  100.  Q6.6        How do I set the timezone ?
  101.  Q6.7        What version of Linux and what machine name am I using ?
  102.  Q6.8        When I add more memory it slows to a crawl.
  103.  Q6.9        Some programs (e.g. xdm) won't let me log in.
  104.  Q6.10       Some programs let me log in with no password.
  105.  Q6.11       My machine runs very slowly when I run GCC / X / ...
  106.  Q6.12       I can only log in as root.
  107.  Q6.13       How can I produce core files ?
  108.  Q6.14       How do I stop producing core files ?
  109.  Q6.15       My keyboard goes all funny after I switch VC's.
  110.  Q6.16       My screen is all full of weird characters instead of letters.
  111.  Q6.17       What is a .gz file ? And a .tgz ? And ... ?
  112.  Q6.18       I have screwed up my system and can't log in to fix it.
  113.  Q6.19       How do I upgrade/recompile my kernel ?
  114.  Q6.20       Can I have more than 3 serial ports by sharing interrupts ?
  115.  Q6.21       Emacs just dumps core.
  116.  Q6.22       How do I make a bootable floppy ?
  117.  Q6.23       How do I remap my keyboard to UK, French, etc. ?
  118.  Q6.24       I've discovered a huge security hole in rm !
  119.  Q6.25       lpr and lpd aren't working.
  120.  Q6.26       What does VFS stand for ?
  121.  
  122.  Section 7.  Frequently Encountered Error messages
  123.  Q7.1        fdisk says Partition X has different phsyical/logical ...
  124.  Q7.2        fdisk: Partition 1 does not start on cylinder boundary
  125.  Q7.3        lp1 on fire
  126.  Q7.4        INET: Warning: old style ioctl(IP_SET_DEV) called!
  127.  Q7.5        ld: unrecognized option '-m486'
  128.  Q7.6        GCC says Internal compiler error
  129.  Q7.7        make says Error 139
  130.  Q7.8        df says Cannot read table of mounted filesystems
  131.  Q7.9        shell-init: permission denied when I log in.
  132.  Q7.10       No utmp entry.  You must exec ... when I log in.
  133.  Q7.11       EXT2-fs: warning: mounting unchecked filesystem
  134.  Q7.12       EXT2-fs warning: maximal count reached
  135.  Q7.13       EXT2-fs warning: checktime reached
  136.  Q7.14       fdisk says cannot use nnn sectors of this partition
  137.  Q7.15       fdisk says partition n has an odd number of sectors
  138.  Q7.16       mtools says cannot initialise drive XYZ
  139.  Q7.17       Warning: obsolete routing request made.
  140.  
  141.  Section 8.  The X Window System
  142.  Q8.1        Does Linux support X Windows ?
  143.  Q8.2        Where can I get an Xconfig for my video card and monitor ?
  144.  Q8.3        xterm logins show up strangely in who, finger
  145.  Q8.4        I can't get X Windows to work right.
  146.  
  147.  Section 9.  How to get further assistance
  148.  Q9.1        You still haven't answered my question !
  149.  Q9.2        What to put in a posting to comp.os.linux.help
  150.  
  151.  Section 10. Administrative information and acknowledgements
  152.  Q10.1       Feedback is invited
  153.  Q10.2       Formats in which this FAQ is available
  154.  Q10.3       Authorship and acknowledgements
  155.  Q10.4       Disclaimer and Copyright
  156.  
  157. ===============================================================================
  158.  
  159. Section 1.  Introduction and General Information
  160.  
  161.  Q1.1        What is Linux ?
  162.  Q1.2        What software does it support ?
  163.  Q1.3        Does it run on my computer ?  What hardware is supported ?
  164.  Q1.4        How much hard disk space does Linux need ?
  165.  Q1.5        Is Linux PD ?  Copyrighted ?
  166.  Q1.6        How should I pronounce Linux ?
  167.  
  168. -------------------------------------------------------------------------------
  169.  
  170. Question 1.1.  What is Linux ?
  171.  
  172. Linux is a Unix clone for 386/486-based PCs written from scratch by Linus
  173. Torvalds with assistance from a loosely-knit team of hackers across the
  174. Net.  It aims towards POSIX compliance.
  175.  
  176. It has all the features you would expect in a modern fully-fledged Unix,
  177. including true multitasking, virtual memory, shared libraries, demand
  178. loading, shared copy-on-write executables, proper memory management and
  179. TCP/IP networking.
  180.  
  181. It uses the hardware features of the 386 processor family (TSS segments et
  182. al) to implement these features.
  183.  
  184. See the Linux INFO-SHEET [Q2.1 `Where can I get the HOWTOs and other
  185. documentation ?'] for more details.
  186.  
  187. It is distributed under the GNU General Public License - see Q1.5 `Is
  188. Linux PD ?  Copyrighted ?' for more details.
  189.  
  190. -------------------------------------------------------------------------------
  191.  
  192. Question 1.2.  What software does it support ?
  193.  
  194. Linux has GCC, Emacs, X-Windows, all the standard Unix utilities, TCP/IP
  195. (including SLIP --- PPP support is being developed) and all the hundreds
  196. of programs that people have compiled or ported for it.
  197.  
  198. There is a DOS emulator [Q3.1 `Can Linux coexist with DOS ?  OS/2 ?
  199. 386BSD ?  Minix ?'] and work is progressing on a facilities to allow SVR4
  200. ELF, SVR3.2 COFF and Microsoft Windows binaries [Q3.6 `Can I run Microsoft
  201. Windows programs under Linux ?'] to be run under Linux and X Windows.
  202.  
  203. For more information see the INFO-SHEET, which is one of the the HOWTOs
  204. --- see above, or Q2.1 `Where can I get the HOWTOs and other documentation
  205. ?'.  See also Q5.4 `How do I port XXX to Linux ?'.
  206.  
  207. Some companies have commercial software available, including Motif.  They
  208. announce their availability in comp.os.linux.announce --- try searching
  209. the archives [Q2.9 `Are the newsgroups archived anywhere ?'].
  210.  
  211. -------------------------------------------------------------------------------
  212.  
  213. Question 1.3.  Does it run on my computer ?  What hardware is supported ?
  214.  
  215. You need a 386 or 486, with at least 2Mb of RAM and a single floppy, to
  216. try it out.  To do anything useful more RAM and a hard disk are required.
  217. Reportedly Linux also works on a Pentium.
  218.  
  219. Linux doesn't currently work on machines using MCA (IBM's proprietary
  220. bus), because of lack of available documentation.  You may be able to get
  221. it to work if your hard disk is on certain kinds of controller (some SCSI
  222. controllers work, I understand), but you're on your own.
  223.  
  224. VESA local bus and PCI are both supported.  However, a driver for the NCR
  225. SCSI chip in many PCI machines is not yet available, but is under
  226. development.
  227.  
  228. Linux is reported to run on 386/486-based laptops, with X on most of them.
  229.  
  230. For details of exactly which PC's, video cards, disk controllers, etc.
  231. work see the INFO-SHEET and the Hardware Compatibility HOWTO [Q2.1 `Where
  232. can I get the HOWTOs and other documentation ?'].
  233.  
  234. Linux will never run on a 286, because it uses task-switching and memory
  235. management facilities only found on 386/486 processors.
  236.  
  237. A project has been underway for nearly a year now to port Linux to
  238. suitable 68000-series based systems such as Amigas and Ataris, but this is
  239. still at an early stage of development.  Don't post asking about it unless
  240. you think you can contribute to it, and don't hold your breath.
  241.  
  242. Work has just been started on a port to the PowerPC.  Currently this will
  243. be based on the PowerMAC architecture.  Again, don't post asking about it
  244. unless you have experience to offer, and don't hold your breath.
  245.  
  246. Neither of these ports will be capable of running Linux/386 binaries.
  247.  
  248. -------------------------------------------------------------------------------
  249.  
  250. Question 1.4.  How much hard disk space does Linux need ?
  251.  
  252. 10Mb for a very minimal installation, suitable for trying it out and not
  253. much else.
  254.  
  255. You can squeeze a more complete installation including X Windows into
  256. 80Mb.  The SLS 1.03 distribution (which I would recommend you stay well
  257. clear of - it has a number of serious and annoying bugs) takes around
  258. 100Mb.
  259.  
  260. -------------------------------------------------------------------------------
  261.  
  262. Question 1.5.  Is Linux PD ?  Copyrighted ?
  263.  
  264. The Linux kernel copyright belongs to Linus Torvalds.  He has placed it
  265. under the GNU General Public Licence, which basically means that you may
  266. freely copy, change and distribute it, but that you may not impose any
  267. restrictions on further distribution, and that you must make the source
  268. code available.
  269.  
  270. Full details are in the file COPYING in the Linux kernel sources (probably
  271. in /usr/src/linux on your system).
  272.  
  273. The copyright of the utilities and programs which come with the
  274. installations vary; much of the code is from the GNU Project at the Free
  275. Software Foundation, and is also under the GPL.
  276.  
  277. Note that discussion about the merits or otherwise of the GPL should be
  278. posted to gnu.misc.discuss and not to the comp.os.linux groups.
  279.  
  280. -------------------------------------------------------------------------------
  281.  
  282. Question 1.6.  How should I pronounce Linux ?
  283.  
  284. This is a matter of religious debate, of course !
  285.  
  286. If you want to hear the Linus himself say how he pronounces it download
  287. english.au or swedish.au from ftp.funet.fi (in
  288. /pub/OS/Linux/PEOPLE/Linus/SillySounds).  If you have a soundcard or the
  289. PC-speaker audio driver you can hear them by typing
  290.    cat english.au >/dev/audio
  291. The difference isn't in the pronunciation of Linux but in the language
  292. Linus uses to say hello.
  293.  
  294. For the benefit of those of you who don't have the equipment or
  295. inclination: Linus pronounces Linux approximately as Leenus, where the ee
  296. is as in feet but rather shorter and the u is like a much shorter version
  297. of the French eu sound in peur (pronouncing it as the u in put is probably
  298. passable).
  299.  
  300. When speaking English I pronounce it Lie-nucks (u as in bucket) --- this
  301. is an anglicised pronunciation based on the analogy with Linus' name,
  302. which in English is usually pronounced Lie-nus (u as in put).  It is of
  303. course quite acceptable and common to modify the pronunciation of a proper
  304. noun when it changes languages.
  305.  
  306. I think I can safely say that the pronunciation Linnucks (short i as in
  307. pit, short u as in bucket) is wrong in English, as it is not the original
  308. Swedish pronunciation, not a sensible direct anglicisation of it, and not
  309. based on the anglicised version of Linus' name.
  310.  
  311. ===============================================================================
  312.  
  313. Section 2.  Network sources and resources
  314.  
  315.  Q2.1        Where can I get the HOWTOs and other documentation ?
  316.  Q2.2        Where should I look on the World Wide Web for Linux stuff ?
  317.  Q2.3        What newsgroups are there for Linux ?
  318.  Q2.4        How do I install Linux ?
  319.  Q2.5        Where can I get Linux material by FTP ?
  320.  Q2.6        I don't have FTP access.  Where do I get Linux ?
  321.  Q2.7        I don't have Usenet access.  Where do I get information ?
  322.  Q2.8        What's this mailing list thing at niksula.hut.fi ?
  323.  Q2.9        Are the newsgroups archived anywhere ?
  324.  
  325. -------------------------------------------------------------------------------
  326.  
  327. Question 2.1.  Where can I get the HOWTOs and other documentation ?
  328.  
  329. Look in the following places, and on sites that mirror them.
  330.    ftp.funet.fi (128.214.6.100)   /pub/OS/Linux/doc/HOWTO
  331.    tsx-11.mit.edu (18.172.1.2)    /pub/linux/docs/HOWTO
  332.    sunsite.unc.edu (152.2.22.81)  /pub/Linux/docs/HOWTO
  333. For a complete list of Linux FTP sites see Q2.4 `How do I install Linux
  334. ?'.
  335.  
  336. If you don't have access to FTP try using the FTP-by-mail servers at
  337. ftpmail@decwrl.dec.com, ftpmail@doc.ic.ac.uk or
  338. ftp-mailer@informatik.tu-muenchen.de.
  339.  
  340. A complete list of HOWTO's is available in the file HOWTO.INDEX in the
  341. docs/HOWTO directory at the FTP sites, but here is a (possibly incomplete)
  342. list:
  343.  
  344.           Installation HOWTO            Electronic Mail HOWTO
  345.           Linux INFO-SHEET              UUCP HOWTO
  346.           Linux META-FAQ                SCSI HOWTO
  347.           NET-2 HOWTO                   Printing HOWTO
  348.           Ethernet HOWTO                Hardware Comaptibility HOWTO
  349.           News HOWTO                    XFree86 HOWTO
  350.           Distribution HOWTO            MGR HOWTO
  351.           Ftape HOWTO                   Sound HOWTO
  352.           JE HOWTO                      Busmouse HOWTO
  353.  
  354. Some more of these documents are in preparation.  You should check in
  355. nearby directories on the FTP sites if you can't find the answer in one of
  356. the HOWTOs.  There are also a few mini-HOWTOs in the docs/HOWTO/mini
  357. directory.
  358.  
  359. The HOWTO.INDEX also contains information on how to write a new HOWTO.
  360.  
  361. The HOWTOs are coordinated by Matt Welsh, <mdw@sunsite.unc.edu>.
  362.  
  363. The `books' produced by the Linux Documentation Project are available in
  364. /pub/Linux/docs/LDP on sunsite.unc.edu.  Please read them if you are new
  365. to Unix and Linux.  Here is a list of those released so far:
  366.  
  367.           The Linux Documentation Project manifesto
  368.           Installation and Setup Guide for Linux
  369.           The Kernel Hacker's Guide
  370.           Network Administration Guide
  371.           Linux System Administrator's Guide
  372.  
  373. -------------------------------------------------------------------------------
  374.  
  375. Question 2.2.  Where should I look on the World Wide Web for Linux stuff ?
  376.  
  377. Matt Welsh maintains the Linux Home Page, at
  378. http://sunsite.unc.edu/mdw/linux.html.
  379.  
  380. This page refers to all the FAQs and HOWTOs, both those which are
  381. available in HTML (WWW) format and those which aren't.
  382.  
  383. -------------------------------------------------------------------------------
  384.  
  385. Question 2.3.  What newsgroups are there for Linux ?
  386.  
  387. There are five international Usenet newsgroups devoted to Linux.
  388.  
  389. comp.os.linux.announce is the moderated announcements group; you should
  390. read this if you intend to use Linux.  Submissions for that group should
  391. be emailed to linux-announce@tc.cornell.edu.
  392.  
  393. comp.os.linux.help, comp.os.linux.development, comp.os.linux.admin and
  394. comp.os.linux.misc are also worth reading -- you may find that many common
  395. problems are too recent to find in this FAQ but are answered in the
  396. newsgroups.
  397.  
  398. Remember that since Linux is a Unix clone, most all of the material in
  399. comp.unix.* and comp.windows.x.* groups will be relevant.  Apart from
  400. hardware considerations, and some obscure or very technical low-level
  401. issues, you'll find that these groups are the right place to start.
  402.  
  403. Please read Q9.1 `You still haven't answered my question !' before
  404. posting, and make sure you post to the right newsgroup.  Crossposting is
  405. rarely a good idea.
  406.  
  407. See also Q2.7 `I don't have Usenet access.  Where do I get information ?'.
  408.  
  409. Other regional and local newsgroups also exist - you may find the traffic
  410. more manageable there.  The French Linux newsgroup is fr.comp.os.linux;
  411. there is probably also a German one.  In Australia, try
  412. aus.computers.linux.
  413.  
  414. There may well be Linux groups local to your institution or area - check
  415. there first.
  416.  
  417. -------------------------------------------------------------------------------
  418.  
  419. Question 2.4.  How do I install Linux ?
  420.  
  421. There are several pre-packaged releases of Linux available, including the
  422. MCC-Interim release, the TAMU release and the Slackware release.  Each
  423. contains the software you need to run linux, ready to install and use.
  424. The exact details of which software is included and how to install them
  425. vary from release to release.
  426.  
  427. You should read the Installation HOWTO for more details on how to go about
  428. installing Slackware.  If you prefer a small, clean distribution to one
  429. with everything but the kitchen sink you might like to try the MCC-Interim
  430. release.
  431.  
  432. All of these releases are available via anonymous FTP from the Linux
  433. archive sites [Q2.5 `Where can I get Linux material by FTP ?'].
  434.  
  435. -------------------------------------------------------------------------------
  436.  
  437. Question 2.5.  Where can I get Linux material by FTP ?
  438.  
  439. There are three main archive sites for Linux:
  440.    ftp.funet.fi (128.214.248.6)   /pub/OS/Linux
  441.    sunsite.unc.edu (152.2.22.81)  /pub/Linux
  442.    tsx-11.mit.edu (18.172.1.2)    /pub/linux
  443. The MCC-Interim release is available from:
  444.    ftp.mcc.ac.uk (130.88.200.7)   /pub/linux
  445. The TAMU release is available from:
  446.    net.tamu.edu (128.194.177.1)   /pub/linux
  447.  
  448. The contents of these sites is mirrored (copied, usually approximately
  449. daily) by a number of other sites.  Please use one close to you -- that
  450. will be faster for you and easier on the network.
  451.    src.doc.ic.ac.uk                     wuarchive.wustl.edu
  452.    sunacm.swan.ac.uk                    ftp.eecs.umich.edu
  453.    ftp.ibp.fr                           mrcnext.cso.uiuc.edu
  454.  
  455.    ftp.informatik.tu-muenchen.de        bond.edu.au
  456.    ftp.ibr.cs.tu-bs.de                  monu1.cc.monash.edu.au
  457.    ftp.dfv.rwth-aachen.de               ftp.sun.ac.za
  458.    ftp.informatik.rwth-aachen.de        cair.kaist.ac.kr
  459. Not all of these mirror all of the other `source' sites, and some have
  460. material not available on the `source' sites.
  461.  
  462. -------------------------------------------------------------------------------
  463.  
  464. Question 2.6.  I don't have FTP access.  Where do I get Linux ?
  465.  
  466. The easiest thing is probably to find a friend with FTP access.  If there
  467. is a Linux users group near you they may be able to help.
  468.  
  469. If you have a reasonably good email connection you could try the
  470. FTP-by-mail servers at ftpmail@decwrl.dec.com, ftpmail@doc.ic.ac.uk or
  471. ftp-mailer@informatik.tu-muenchen.de.
  472.  
  473. Linux is also available via traditional mail on diskette, CD-ROM and tape.
  474. The Installation HOWTO, and the file /pub/Linux/docs/distributions on
  475. sunsite.unc.edu, contains information on these distributions.
  476.  
  477. You could also try Zane Healy <healyzh@holonet.net>'s list of Linux BBS's,
  478. which is posted regularly (1st and 15th of each month) to
  479. comp.os.linux.announce and occasionally to the Fidonet and RIME UNIX
  480. echoes.
  481.  
  482. -------------------------------------------------------------------------------
  483.  
  484. Question 2.7.  I don't have Usenet access.  Where do I get information ?
  485.  
  486. Digests of postings to the comp.os.linux.* groups are available by
  487. subscribing to the bidirectional gateway at
  488. linux-*-request@news-digests.mit.edu, where * is one of announce,
  489. development, help, misc or admin.
  490.  
  491. You are strongly advised to subscribe to at least
  492. linux-announce-request@news-digests.mit.edu, as this carries important
  493. information and documentation about Linux.
  494.  
  495. Please remember to use the -request addresses for your subscription and
  496. unsubscription messages; mail to the other address is posted to the
  497. newsgroup !
  498.  
  499. -------------------------------------------------------------------------------
  500.  
  501. Question 2.8.  What's this mailing list thing at niksula.hut.fi ?
  502.  
  503. It's a multi-channel mailing list, mainly used by the developers of Linux
  504. to talk about technical issues and future developments.  Most of the
  505. channels are not intended for new users to ask their questions on.
  506.  
  507. The ANNOUNCE channel is a digest of postings to comp.os.linux.announce,
  508. for the benefit of those without Usenet access.  However since
  509. niksula.hut.fi is slow and overloaded I'd recommend subscribing to the MIT
  510. digestifier instead [Q2.7 `I don't have Usenet access.  Where do I get
  511. information ?'].
  512.  
  513. There is also a NEWBIE channel where `no question is too stupid';
  514. unfortunately it seems that few of the experienced users read that
  515. channel, probably because of all the `stupid' questions !
  516.  
  517. If you want to subscribe to one or more of the channels at the
  518. multi-channel list, send an empty mail message to
  519. linux-activists-request@niksula.hut.fi and you'll receive the instructions
  520. for operating the list subscription software.
  521.  
  522. If you want to unsubscribe send a mail message like this
  523.   From: you@domain.org
  524.   To: linux-activists-request@niksula.hut.fi
  525.   Subject: irrelevant
  526.  
  527.   X-Mn-Admin: leave CHANNEL
  528. to leave a channel called CHANNEL.  Do *not* put an X-Mn-Key line in your
  529. message - that will cause it to be posted to the list.
  530.  
  531. Note that you *must* remember to unsubscribe *before* you change your
  532. email address, as due to a design flaw in the list server it is virtually
  533. impossible to get yourself unsubscribed after such a change.
  534.  
  535. -------------------------------------------------------------------------------
  536.  
  537. Question 2.9.  Are the newsgroups archived anywhere ?
  538.  
  539. Yes.  ftp.funet.fi and tsx-11.mit.edu contain archives of both
  540. comp.os.linux.announce and the old group comp.os.linux, in their Linux
  541. areas.  The comp.os.linux.announce archives are mirrored from /usenet on
  542. src.doc.ic.ac.uk (which also contains another archive of comp.os.linux).
  543.  
  544. ===============================================================================
  545.  
  546. Section 3.  Compatibility with other operating systems
  547.  
  548.  Q3.1        Can Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?
  549.  Q3.2        How do I access files on my DOS partition or floppy ?
  550.  Q3.3        Can I use my Stacked/DBLSPC/etc. DOS drive ?
  551.  Q3.4        Can I access OS/2 HPFS partitions from Linux ?
  552.  Q3.5        Can I access BSD FFS, SysV UFS, Mac, Amiga, etc filesystems ?
  553.  Q3.6        Can I run Microsoft Windows programs under Linux ?
  554.  Q3.7        How can I boot Linux from OS/2's Boot Manager ?
  555.  Q3.8        How can I share a swap partition between Linux and MS Windows ?
  556.  
  557. -------------------------------------------------------------------------------
  558.  
  559. Question 3.1.  Can Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?
  560.  
  561. Yes.  Linux uses the standard PC partitioning scheme, so it can share your
  562. disk with other operating systems.
  563.  
  564. Linux can read and write the files on your DOS and OS/2 FAT partitions and
  565. floppies using either the DOS filesystem type built into the kernel or
  566. mtools.  There is a DOS emulator (look on tsx-11.mit.edu in
  567. /pub/linux/ALPHA/dosemu) which can run DOS itself and some (but not all)
  568. DOS applications.
  569.  
  570. Linux can also access Minix and System V UFS filesystems.
  571.  
  572. -------------------------------------------------------------------------------
  573.  
  574. Question 3.2.  How do I access files on my DOS partition or floppy ?
  575.  
  576. Use the DOS filesystem, i.e. type, for example:
  577.         mkdir /dos
  578.         mount -t msdos -o conv=text,umask=022,uid=100,gid=100 /dev/hda3 /dos
  579. If it's a floppy, don't forget to umount it before ejecting it !
  580.  
  581. You can use the conv=text/binary/auto, umask=nnn, uid=nnn and gid=nnn
  582. options to control the automatic line-ending conversion, permissions and
  583. ownerships of the files in the DOS filesystem as they appear under Linux.
  584. If you mount your DOS filesystem by putting it in your /etc/fstab you can
  585. record the options (comma-separated) there, instead of defaults.
  586.  
  587. Alternatively you can use `mtools', available in both binary and source
  588. form on the FTP sites -- see Q2.4 `How do I install Linux ?'.
  589.  
  590. -------------------------------------------------------------------------------
  591.  
  592. Question 3.3.  Can I use my Stacked/DBLSPC/etc. DOS drive ?
  593.  
  594. Not easily.  You can access them from within the DOS emulator [Q3.1 `Can
  595. Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?'], but not as a normal
  596. filesystem under Linux or using mtools.
  597.  
  598. -------------------------------------------------------------------------------
  599.  
  600. Question 3.4.  Can I access OS/2 HPFS partitions from Linux ?
  601.  
  602. Yes, but it's only read-only at the moment.  To use it you must compile a
  603. kernel with support for it enabled [Q6.19 `How do I upgrade/recompile my
  604. kernel ?'].  Then you can mount it using the mount command, for example:
  605.         mkdir /hpfs
  606.         mount -t hpfs /dev/hda5 /hpfs
  607.  
  608. -------------------------------------------------------------------------------
  609.  
  610. Question 3.5.  Can I access BSD FFS, SysV UFS, Mac, Amiga, etc filesystems ?
  611.  
  612. I'm told that there is an alpha test read-only Amiga filesystem on
  613. sunsite.unc.edu, probably in /pub/Linux/kernel/misc-patches/ffs-patch.
  614. Work may well be progressing on upgrading this to read-write for the 680x0
  615. Linux project.
  616.  
  617. There is no support for the rest of those yet; I have not heard of any
  618. recent work on providing some.
  619.  
  620. -------------------------------------------------------------------------------
  621.  
  622. Question 3.6.  Can I run Microsoft Windows programs under Linux ?
  623.  
  624. Not yet.  There is a project, known as WINE, to build an MS Windows
  625. emulator for Linux, but it is not ready for users yet.  Don't ask about it
  626. unless you think you can contribute; look out for the status reports in
  627. comp.os.linux.announce.
  628.  
  629. The advert from Softlanding (producers of SLS) stating that Linux could
  630. run MS Windows binaries was at best grossly exaggerated.  I'm told that
  631. you can run Windoze 3.0 in real mode in a dosemu [Q3.1 `Can Linux coexist
  632. with DOS ?  OS/2 ?  386BSD ?  Minix ?'].
  633.  
  634. In the meantime if you need to run MS Windows programs your best bet is
  635. probably to reboot when you want to switch environments.  LILO (the Linux
  636. bootloader) has the facility for a boot menu --- see its documentation for
  637. more details.
  638.  
  639. -------------------------------------------------------------------------------
  640.  
  641. Question 3.7.  How can I boot Linux from OS/2's Boot Manager ?
  642.  
  643. 1. Create a partition using OS/2's FDISK (Not Linux's fdisk).
  644.  
  645. 2. Format the partition under OS/2, either with FAT or HPFS.  This is so
  646. that OS/2 knows about the partition being formatted.
  647.  
  648. 3. Add the partition to the Boot Manager.
  649.  
  650. 4. Boot Linux, and create a filesystem on the partition using mkfs -t ext2
  651. or mke2fs.  At this point you may, if you like, use Linux's fdisk to
  652. change the partition type code of the new partition to type 83 (Linux
  653. Native) -- this may help some automated installation scripts find the
  654. right partition to use.
  655.  
  656. 5. Install Linux on the partition.
  657.  
  658. 6. Install LILO on the Linux partition -- NOT on the master boot record of
  659. the hard drive.  This installs LILO as a second-stage boot loader on the
  660. Linux partition itself, to start up the kernel specified in the LILO
  661. config file.  To do this you should put
  662.    boot = /dev/hda2
  663. (where /dev/hda2 is the *partition* you want to boot off) in your
  664. /etc/lilo/config or /etc/lilo.config file.
  665.  
  666. 7. Make sure that it is the Boot Manager partition that is marked active,
  667. so that you can use Boot Manager to choose what to boot.
  668.  
  669. -------------------------------------------------------------------------------
  670.  
  671. Question 3.8.  How can I share a swap partition between Linux and MS Windows ?
  672.  
  673. See the Mini-HOWTO on the subject by H. Peter Anvin, <hpa@eecs.nwu.edu>.
  674. It is available on sunsite.unc.edu in /pub/Linux/docs.
  675.  
  676. ===============================================================================
  677.  
  678. Section 4.  Linux's handling of filesystems, disks and drives
  679.  
  680.  Q4.1        How can I undelete files ?
  681.  Q4.2        Is there a defragmenter for ext2fs etc. ?
  682.  Q4.3        How do I format and create a filesystem on a floppy ?
  683.  Q4.4        I get nasty messages about inodes, blocks, and the suchlike
  684.  Q4.5        My swap area isn't working.
  685.  Q4.6        How can I have more than 16Mb of swap ?
  686.  Q4.7        How do I remove LILO so my system boots DOS again ?
  687.  Q4.8        Why can't I use fdformat except as root ?
  688.  Q4.9        Is there something like Stacker or Doublespace for Linux ?
  689.  Q4.10       My ext2fs partitions are checked each time I reboot.
  690.  Q4.11       I have a huge /proc/kcore !  Can I delete it ?
  691.  Q4.12       My AHA1542C doesn't work with Linux.
  692.  
  693. -------------------------------------------------------------------------------
  694.  
  695. Question 4.1.  How can I undelete files ?
  696.  
  697. In general, this is very hard to do on Unices.  Undelete functionality for
  698. the ext2fs is being worked on, but don't hold your breath.
  699.  
  700. In the meantime you can search the raw disk device which holds the
  701. filesystem in question.  The strings command may help you do this, if the
  702. file you've lost was a text file: for example strings /dev/hdb3.  You will
  703. need to be root to do this, and you should take care to put the output
  704. file on a different filesystem, of course ! The output will be large and
  705. full of extra unwanted crud, so make sure you have enough space.
  706.  
  707. -------------------------------------------------------------------------------
  708.  
  709. Question 4.2.  Is there a defragmenter for ext2fs etc. ?
  710.  
  711. You can probably do without, since the ext2 filesystem code tries to
  712. reduce fragmentation as it goes, during normal operation.
  713.  
  714. If you really need to defragment a filesystem you could back it up,
  715. reinitialise the partition using mkfs -t ext2 and restore it.
  716.  
  717. I'm told that a defragmenter for Minix and old-style `ext' filesystems is
  718. available on sunsite.unc.edu in system/Filesystems/defrag-0.4.tar.z.
  719.  
  720. -------------------------------------------------------------------------------
  721.  
  722. Question 4.3.  How do I format and create a filesystem on a floppy ?
  723.  
  724. For a 3.5 inch high density floppy:
  725.    fdformat /dev/fd0H1440
  726.    mkfs -t ext2 -m 0 /dev/fd0H1440 1440
  727. For a 5.25 inch floppy use fd0h1200 and 1200 as appropriate.  For the `B'
  728. drive use fd1 instead of fd0.  Full details of which floppy devices do
  729. what can be found in the Linux Device List [Q2.1 `Where can I get the
  730. HOWTOs and other documentation ?'].  If you don't have the fsutils package
  731. you'll have to run mke2fs instead of mkfs -t ext2.  The -m 0 option tells
  732. mkfs.ext2 not to reserve any space on the disk for the superuser ---
  733. usually the last 10% is reserved for root.
  734.  
  735. The first command low-level formats the floppy; the second creates an
  736. empty filesystem on it.  After doing this you can mount the floppy like a
  737. hard disk partition and simply cp and mv files, etc.
  738.  
  739. -------------------------------------------------------------------------------
  740.  
  741. Question 4.4.  I get nasty messages about inodes, blocks, and the suchlike
  742.  
  743. You probably have a corrupted filesystem, probably caused by not shutting
  744. Linux down properly before turning off the power or resetting.  You need
  745. to use a recent shutdown program to do this --- for example, the one
  746. included in the bootutils package, available on sunsite and tsx-11.
  747.  
  748. If you're lucky the program fsck (or e2fsck or xfsck as appropriate if you
  749. don't have the fsutils package) will be able to repair your filesystem; if
  750. you're unlucky the filesystem is trashed and you'll have to reinitialise
  751. it with mkfs (or mke2fs, mkxfs etc.) it and restore from a backup.
  752.  
  753. NB don't try to check a filesystem that's mounted read-write - this
  754. includes the root partition if you don't see
  755.    VFS: mounted root ... read-only
  756. at boot time.
  757.  
  758. -------------------------------------------------------------------------------
  759.  
  760. Question 4.5.  My swap area isn't working.
  761.  
  762. When you boot (or enable swapping manually) you should see
  763.         Adding Swap: NNNNk swap-space
  764.  
  765. If you don't see any messages at all you are probably missing swapon -av
  766. (the command to enable swapping) in your /etc/rc or /etc/rc.local (the
  767. system startup scripts), or have forgotten to make the right entry in
  768. /etc/fstab:
  769.         /dev/hda2       none       swap       sw
  770. for example.
  771.  
  772. If you see
  773.         Unable to find swap-space signature
  774. you have forgotten to run mkswap.  See the manpage for details; it works
  775. much like mkfs.
  776.  
  777. Check the Installation HOWTO for detailed instructions of how to set up a
  778. swap area.
  779.  
  780. -------------------------------------------------------------------------------
  781.  
  782. Question 4.6.  How can I have more than 16Mb of swap ?
  783.  
  784. Use a recent kernel -- from at least 0.99.14 Linux can use swap partitions
  785. of up to 128Mb.
  786.  
  787. If you use an older kernel which only supports swap area sizes up to 16Mb
  788. you have to set up more than one swap partition or swapfile.
  789.  
  790. -------------------------------------------------------------------------------
  791.  
  792. Question 4.7.  How do I remove LILO so my system boots DOS again ?
  793.  
  794. Using DOS (MS-DOS 5.0 or later, or OS/2), type FDISK /MBR.  This will
  795. restore a standard MS-DOS Master Boot Record.  If you have DR-DOS 6.0, go
  796. into FDISK in the normal way and then select the `Re-write Master Boot
  797. Record' option.
  798.  
  799. If you don't have DOS 5 or DR-DOS you need to have the boot sector that
  800. LILO saved when you first installed it.  You did keep that file, didn't
  801. you ?  It's probably called boot.0301 or some such.  Type
  802.    dd if=boot.0301 of=/dev/hda bs=445 count=1
  803. (or sda if you're using a SCSI disk).  This may also wipe out your
  804. partition table, so beware !  If you're desperate, you could use
  805.    dd if=/dev/zero of=/dev/hda bs=512 count=1
  806. which will erase your partition table and boot sector completely: you can
  807. then reformat the disk using your favourite software; however this will
  808. render the contents of your disk inaccessible --- you'll lose it all
  809. unless you're an expert.
  810.  
  811. Note that the DOS MBR boots whichever (single!) partition is flagged as
  812. `active'; you may need to use fdisk to set and clear the active flags on
  813. partitions appropriately.
  814.  
  815. -------------------------------------------------------------------------------
  816.  
  817. Question 4.8.  Why can't I use fdformat except as root ?
  818.  
  819. The system call to format a floppy may only be done as root, regardless of
  820. the permissions of /dev/fd0*.  If you want any user to be able to format a
  821. floppy try getting the fdformat2 program; this works around the problems
  822. by being setuid to root.
  823.  
  824. -------------------------------------------------------------------------------
  825.  
  826. Question 4.9.  Is there something like Stacker or Doublespace for Linux ?
  827.  
  828. Currently none of the Linux filesystems can do compression in the
  829. filesystem.
  830.  
  831. There is a transparently uncompressing C library, which is a drop-in
  832. replacement for the standard C library.  It allows programs to read
  833. compressed (ie, GNU zipped) files as if they were not compressed.  You
  834. install it, and then you can compress files using gzip and have programs
  835. still find them.  Look on sunsite.unc.edu in /pub/Linux/libs.  The author
  836. is Alain Knaff <Alain.Knaff@imag.fr>.
  837.  
  838. There is a compressing block device driver that can provide
  839. filesystem-independant on the fly disk compression in the kernel.  It is
  840. called `DouBle'.  There is a source only distribution on sunsite.unc.edu
  841. in /pub/Linux/utils/compress; the auther is Jean-Marc Verbavatz
  842. <jmv@receptor.mgh.harvard.edu>.  Note that since this compresses inodes
  843. (administrative information) and directories as well as file contents any
  844. corruption is quite likely to be serious.
  845.  
  846. There is also a package available called tcx (Transparently Compressed
  847. Executables) which allows you to keep infrequently used executables
  848. compressed and only uncompress them temporarily while you use them.
  849. You'll find it on the Linux FTP sites [Q2.5 `Where can I get Linux
  850. material by FTP ?']; it was also announced in comp.os.linux.announce.
  851. Note - this is not the same as gzexe, which is an inferior implementation
  852. of the same concept.
  853.  
  854. -------------------------------------------------------------------------------
  855.  
  856. Question 4.10.  My ext2fs partitions are checked each time I reboot.
  857.  
  858. See Q7.11 `EXT2-fs: warning: mounting unchecked filesystem'.
  859.  
  860. -------------------------------------------------------------------------------
  861.  
  862. Question 4.11.  I have a huge /proc/kcore !  Can I delete it ?
  863.  
  864. None of the files in /proc are really there - they're all "pretend" files
  865. made up by the kernel, to give you information about the system, and don't
  866. take up any hard disk space.
  867.  
  868. /proc/kcore is like an "alias" for the memory in your computer; its size
  869. is the same as the amount of RAM you have, and if you ask to read it as a
  870. file the kernel does memory reads.
  871.  
  872. -------------------------------------------------------------------------------
  873.  
  874. Question 4.12.  My AHA1542C doesn't work with Linux.
  875.  
  876. For older Linux kernels you need to turn off most of the "advanced BIOS"
  877. options - all but the one about scanning the bus for bootable devices.
  878. The option to allow disks with more than 1024 cylinders is only required
  879. as a workaround for a DOS misfeature and should be turned *off* under
  880. Linux.
  881.  
  882. ===============================================================================
  883.  
  884. Section 5.  Porting, compiling and obtaining programs
  885.  
  886.  Q5.1        What is ld.so and where do I get it ?
  887.  Q5.2        During linking I get Undefined symbol _mcount
  888.  Q5.3        Has anyone ported / compiled / written XXX for Linux ?
  889.  Q5.4        How do I port XXX to Linux ?
  890.  Q5.5        Can I use code or a compiler compiled for a 486 on my 386 ?
  891.  Q5.6        GCC sometimes uses huge amounts of virtual memory and thrashes
  892.  Q5.7        What does gcc -O6 do ?
  893.  Q5.8        Where are <linux/*.h> and <asm/*.h> ?
  894.  Q5.9        I get errors when I try to compile the kernel.
  895.  Q5.10       How do I make a shared library ?
  896.  Q5.11       How do I make my executables smaller ?
  897.  
  898. -------------------------------------------------------------------------------
  899.  
  900. Question 5.1.  What is ld.so and where do I get it ?
  901.  
  902. ld.so is the new dynamic library loader.  Each binary using shared
  903. libraries used to have about 3K of start-up code to find and load the
  904. shared libraries.  Now that code has been put in a special shared library,
  905. /lib/ld.so, where all binaries can look for it, so that it wastes less
  906. disk space, and can be upgraded more easily.
  907.  
  908. It can be obtained from tsx-11.mit.edu in /pub/linux/packages/GCC and
  909. mirror sites thereof.  The latest version at the time of writing is
  910. ld.so.1.4.tar.gz.
  911.  
  912. -------------------------------------------------------------------------------
  913.  
  914. Question 5.2.  During linking I get Undefined symbol _mcount
  915.  
  916. This is usually due to a bad interaction between a brokenness in SLS and
  917. the C library release notes.  Your libc.a has been replaced by the
  918. profiling library.  You should remove libc.a, libg.a and libc_p.a and once
  919. again install the new libraries (following the release notes, of course).
  920.  
  921. -------------------------------------------------------------------------------
  922.  
  923. Question 5.3.  Has anyone ported / compiled / written XXX for Linux ?
  924.  
  925. First, look in the Linux Software Map (LSM) --- it's in the docs directory
  926. on sunsite.unc.edu, and on the other FTP sties.
  927.  
  928. Check the FTP sites (see Q2.1 `Where can I get the HOWTOs and other
  929. documentation ?') first --- search the find-ls or INDEX files for
  930. appropriate strings.
  931.  
  932. If you don't find anything, you could either download the sources to the
  933. program yourself and compile them -- see Q5.4 `How do I port XXX to Linux
  934. ?' -- or, if it's a large package which may require some porting, post a
  935. message to the newsgroup.
  936.  
  937. If you compile a largeish program please upload it to one or more of the
  938. FTP sites and post a message to comp.os.linux.announce (submit your
  939. posting to linux-announce@tc.cornell.edu).
  940.  
  941. If you're looking for an application-type program the chances are someone
  942. has already written a free verson.  Try reading the FAQ in
  943. comp.sources.wanted for instructions on how to find sources.
  944.  
  945. -------------------------------------------------------------------------------
  946.  
  947. Question 5.4.  How do I port XXX to Linux ?
  948.  
  949. In general Unix programs need very little porting.  Simply follow the
  950. installation instructions.  If you don't know and don't know how to find
  951. out the answers to some of the questions asked during or by the
  952. installation procedure you can guess, but this tends to produce buggy
  953. programs.  In this case you're probably better off asking someone else to
  954. do the port.
  955.  
  956. If you have a BSD-ish program you should try using -I/usr/include/bsd and
  957. -lbsd on the appropriate parts of the compilation lines.
  958.  
  959. -------------------------------------------------------------------------------
  960.  
  961. Question 5.5.  Can I use code or a compiler compiled for a 486 on my 386 ?
  962.  
  963. Yes.
  964.  
  965. The -m486 option to GCC, which is used to compile binaries for 486
  966. machines, merely makes GCC change certain optimisations.  This makes for
  967. slightly larger binaries which run somewhat faster on a 486.  They still
  968. work fine on a 386, though, with little performance hit.
  969.  
  970. GCC can be configured for a 386 or 486; the only difference is that
  971. configuring it for a 386 makes -m386 the default and configuring for a 486
  972. makes -m486 the default; in either case these can be overriden on a
  973. per-compilation basis or by editing /usr/lib/gcc-lib/i*-linux/n.n.n/specs.
  974.  
  975. -------------------------------------------------------------------------------
  976.  
  977. Question 5.6.  GCC sometimes uses huge amounts of virtual memory and thrashes
  978.  
  979. Older versions of GCC had a bug which makes it use lots of memory if you
  980. try to compile a program which has a large static data table in it.
  981.  
  982. You can either upgrade your version of GCC, or add more swap if necessary
  983. and just grin and bear it; it'll work in the end.
  984.  
  985. -------------------------------------------------------------------------------
  986.  
  987. Question 5.7.  What does gcc -O6 do ?
  988.  
  989. The same as -O2; any number greater than 2 currently works just like 2.
  990. The Makefiles of newer kernels use -O2, and so should you.
  991.  
  992. -------------------------------------------------------------------------------
  993.  
  994. Question 5.8.  Where are <linux/*.h> and <asm/*.h> ?
  995.  
  996. These are in the directories /usr/include/linux and /usr/include/asm.
  997.  
  998. However they should be symbolic links to your kernel sources in
  999. /usr/src/linux and not real directories.
  1000.  
  1001. If you don't have the kernel sources download them --- see Q6.19 `How do I
  1002. upgrade/recompile my kernel ?'.
  1003.  
  1004. Then use rm to remove any garbage, and ln to create the links:
  1005.    rm -rf /usr/include/linux /usr/include/asm
  1006.    ln -sf /usr/src/linux/include/linux /usr/include/linux
  1007.    ln -sf /usr/src/linux/include/asm /usr/include/asm
  1008.  
  1009. -------------------------------------------------------------------------------
  1010.  
  1011. Question 5.9.  I get errors when I try to compile the kernel.
  1012.  
  1013. Make sure that /usr/include/linux and /usr/include/asm aren't actual
  1014. directories but instead symbolic links to /usr/src/linux/include/linux and
  1015. /usr/src/linux/include/asm respectively.
  1016.  
  1017. If necessary, delete them using rm and then use ln -s to make the links as
  1018. in Q5.8 `Where are <linux/*.h> and <asm/*.h> ?'.
  1019.  
  1020. Remember that when you apply a patch to the kernel you must use the -p0 or
  1021. -p1 option: otherwise the patch may be misapplied.  See the manpage for
  1022. patch for details.
  1023.  
  1024. -------------------------------------------------------------------------------
  1025.  
  1026. Question 5.10.  How do I make a shared library ?
  1027.  
  1028. Get tools-n.nn.tar.gz from tsx-11.mit.edu, in /pub/linux/packages/GCC/src.
  1029. It comes with documentation that will tell you what to do.
  1030.  
  1031. -------------------------------------------------------------------------------
  1032.  
  1033. Question 5.11.  How do I make my executables smaller ?
  1034.  
  1035. The most common cause of large executables is the -g compiler flag.  This
  1036. produces (as well as debugging information in the output file) a program
  1037. which is statically linked, i.e. one which includes a copy of the C
  1038. library instead of using a dynamically linked copy.
  1039.  
  1040. Other things that are worth investigating are -O and -O2 which enable
  1041. optimisation (check the GCC documentation) and -s which strips the symbol
  1042. information from the resulting binary (making debugging totally
  1043. impossible).
  1044.  
  1045. You may wish to use -N on very small executables (less than 8K with the
  1046. -N), but you shouldn't do this unless you understand its performance
  1047. implications, and definitely never with daemons.
  1048.  
  1049. ===============================================================================
  1050.  
  1051. The remainder of the FAQ is in the next part ...
  1052.  
  1053. -- 
  1054. Ian Jackson, at home    <ijackson@nyx.cs.du.edu> or <iwj10@cus.cam.ac.uk>
  1055. PGP2 public key available.   Escoerea on IRC.   Urgent: <iwj@cam-orl.co.uk>
  1056. 2 Lexington Close, Cambridge, CB4 3LS, England;  phone: +44 223 575512
  1057.